package exercise;

import java.util.Scanner;

public class DivisionDemo {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            int i = scan.nextInt();
            int j = scan.nextInt();
            System.out.println(i / j);
        } catch (NumberFormatException e) {
            System.out.println("输入类型不一致。");
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("缺少命令行参数。");
        } catch (ArithmeticException e) {
            System.out.println("除0异常。");
        }

    }
}
